<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>第一个Vue实例</title>
</head>
<body>
    <script src="/js/vue.js"></script>
    <div id="app">
        <p>{{msg}}</p>
    </div>

    <script>
        let app =new Vue({
              //键值对
            el:"#app",//字符串，根标签
            data:{//vue实例的数据对象
                //键值对
                msg:'hello！'
            }
        })
        console.log(app.$data.msg);
        app.$age= 10



        // console.log(app.msg);
    </script>
</body>
</html>